php forum
php mysql forum
php mysql smarty
 
Page 1 of 3 1 2 3 >
Topic Options
#220375 - 07/02/02 10:13 PM [UBBT 6.0] Search Page Upgrade
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
This will allow the user to specify searching the subject or body only or both. It also allows specifying the username in addition to the search criteria and not as an either/or option. <img src="/forum/images/icons/smile.gif" alt="" /><br /><br />This also provides the fix so that showflat.php and showthreaded.php display your multiple word search results all words are highlighted.<br /><br />There seemed to be an error for me in dosearch.php where the line<br /><br />if ($Searchpage 0) {<br /><br />is used.<br /><br />I had to change this to <br /><br />if ($Searchpage) {<br /><br />to make it work for me.<br /><br /><br />Give me some feedback on how this goes. It may need some adjusting. <img src="/forum/images/icons/wink.gif" alt="" />


Attachments
51739-searchupgrade.zip (13 downloads)

_________________________
~Dave
ChattersOnline.com

Top
#220376 - 07/02/02 10:40 PM Re: [UBBT 6.0] Search Page Upgrade [Re: sjsaunders]
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
seems to be working well here.. let me know if it looks like I did something wrong <img src="/forum/images/icons/smile.gif" alt="" /><br /><br />In dosearch, my file looks like this:<br /><br /> if ($Searchpage < 0) {<br /> $html -> not_right($ubbt_lang['NO_MORE'],$Cat);<br /> }
_________________________
- Allen wavey
- What Drives You?

Top
#220377 - 07/02/02 10:50 PM Re: [UBBT 6.0] Search Page Upgrade [Re: SurfMinister]
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
That's probably how it should look. <br /><br />I just looked again at my last download from the members area of ubbthreads-6-0-2.tar.gz and it does look like what I showed. Is your file from an earlier version?
_________________________
~Dave
ChattersOnline.com

Top
#220378 - 07/02/02 10:54 PM Re: [UBBT 6.0] Search Page Upgrade [Re: sjsaunders]
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
I don't think so, tho I may have missed it in an earlier "upgrade" <img src="/forum/images/icons/crazy.gif" alt="" />
_________________________
- Allen wavey
- What Drives You?

Top
#220379 - 07/03/02 11:28 AM Re: [UBBT 6.0] Search Page Upgrade [Re: sjsaunders]
MTO Offline
Addict

Registered: 01/31/00
Posts: 1524
Loc: Burgos, Spain.
My ubbthreads-6-0-2.tar.gz says the same as AllenAyres:<br />[:"#666666"] <br /> if ($Searchpage < 0) {<br /> $html -> not_right($ubbt_lang['NO_MORE'],$Cat);<br /> } [/]
_________________________
Mateo Byler
CruceDeCaminos.com

Top
#220380 - 07/03/02 04:21 PM Re: [UBBT 6.0] Search Page Upgrade [Re: D_Wolfwood]
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
Now I'm going to have to go download it again. LoL I wonder how that can be? I looked at the file again and it does not have the < in it. <img src="/forum/images/icons/crazy.gif" alt="" />
_________________________
~Dave
ChattersOnline.com

Top
#220381 - 07/03/02 04:35 PM Re: [UBBT 6.0] Search Page Upgrade [Re: sjsaunders]
msula Offline
Addict

Registered: 02/18/02
Posts: 1969
Loc: Lansing, Michigan
That is odd. Thanks for the hack btw, works great <img src="/forum/images/icons/smile.gif" alt="" />

Top
#220382 - 07/03/02 04:50 PM Re: [UBBT 6.0] Search Page Upgrade [Re: D_Wolfwood]
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
<blockquote><font class="small">posted by MTO:</font><hr /> My ubbthreads-6-0-2.tar.gz says the same as AllenAyres:<br />[:"#666666"] <br /> if ($Searchpage < 0) {<br /> $html -> not_right($ubbt_lang['NO_MORE'],$Cat);<br /> } [/] <hr /></blockquote><br /><br />I just downloaded it again and know what? Mine doesn't say that... LoL <img src="/forum/images/icons/crazy.gif" alt="" /><br /><br />Perhaps winzip is removing things? LoL I hope not.
_________________________
~Dave
ChattersOnline.com

Top
#220383 - 07/03/02 05:00 PM Re: [UBBT 6.0] Search Page Upgrade [Re: sjsaunders]
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
do do do do ...<br /><br />sounds like the twilight zone <img src="/forum/images/icons/wink.gif" alt="" />
_________________________
- Allen wavey
- What Drives You?

Top
#220384 - 07/03/02 05:09 PM Re: [UBBT 6.0] Search Page Upgrade [Re: SurfMinister]
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
LoL yes it is rather bewildering... <img src="/forum/images/icons/wink.gif" alt="" />
_________________________
~Dave
ChattersOnline.com

Top
#220385 - 07/04/02 06:35 PM Re: [UBBT 6.0] Search Page Upgrade [Re: sjsaunders]
Aglavalin Offline
Enthusiast

Registered: 06/18/02
Posts: 394
Loc: Southern California
Hmm, I'm getting some ugly SQL errors on 6.0.2 on win32...<br /><br />Check them out if you dare! LOL<br /><br />http://www.newoutriders.org/ubbtest/search.php

Top
#220386 - 07/04/02 11:50 PM Re: [UBBT 6.0] Search Page Upgrade [Re: neuron]
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
There needs to be a space on each side of the OR<br /><br />(B_Body LIKE '%dddd%')OR (B_Subject LIKE '%dddd%') )<br /><br />should be looking like this (of course if there are no errors you wont see this)<br /><br />(B_Body LIKE '%dddd%') OR (B_Subject LIKE '%dddd%') )<br /><br /><br />Hope that helps. <img src="/forum/images/icons/wink.gif" alt="" />
_________________________
~Dave
ChattersOnline.com

Top
#220387 - 07/05/02 01:29 AM Re: [UBBT 6.0] Search Page Upgrade [Re: sjsaunders]
Aglavalin Offline
Enthusiast

Registered: 06/18/02
Posts: 394
Loc: Southern California
OK, I think I got the spacing fixed but I still get the error. I have a space in front of each AND and OR now in the code added to the dosearch.php

Top
#220388 - 07/05/02 01:58 AM Re: [UBBT 6.0] Search Page Upgrade [Re: neuron]
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
That is odd. Could you post your code and template changes? I'll see if I can spot what went wrong. <img src="/forum/images/icons/smile.gif" alt="" />
_________________________
~Dave
ChattersOnline.com

Top
#220389 - 07/07/02 06:12 PM [UBBT 6.0] Search Page Upgrade (PATCH) [Re: sjsaunders]
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
This patch will make the "Show all user's posts" link in the profiles work correctly.<br /><br />Above this line:<br /><br /> if (($Match == "Or") && ($Words)) {<br /><br />add this:<br /><br />if ($Match == "Username") {<br />$Match = "";<br />$ByUsername = $Words;<br />$Words = "";<br />}<br /><br /><br />I have attached the updated instructions. <img src="/forum/images/icons/smile.gif" alt="" />


Attachments
52117-searchupgrade.2.0.zip (7 downloads)

_________________________
~Dave
ChattersOnline.com

Top
#220390 - 07/07/02 06:41 PM Re: [UBBT 6.0] Search Page Upgrade (PATCH) [Re: sjsaunders]
Max Fisch Offline
Enthusiast

Registered: 05/11/99
Posts: 412
Loc: NYC
small error<br /><br />Hi Dave,<br />Just installed this one, works great! Thanks.<br />A typo: you mention that in dosearch.php, you need to replace<br /> if ($Searchpage 0) {<br />with<br /> if ($Searchpage) {<br /><br />But it looks like in the latest version, the problem was fixed in the base code... and it looks like it should really be <br /><br />if ($Searchpage < 0) {<br /><br />Regards,<br />Max<br /><br /><br />

Top
#220391 - 07/07/02 06:47 PM Re: [UBBT 6.0] Search Page Upgrade (PATCH) [Re: Maze_Brendan]
Lisa_P Offline
Enthusiast

Registered: 03/09/02
Posts: 329
Loc: Michigan, USA
<blockquote><font class="small">posted by Max Fisch:</font><hr /> small error<br /><br />and it looks like it should really be <br /><br />if ($Searchpage < 0) {<br /><br />Regards,<br />Max<br /><hr /></blockquote><br /><br />Shhhhh-- <img src="/forum/images/icons/wink.gif" alt="" /> Dave can't see the [:"red"] < [/] and swears it isn't there. <img src="/forum/images/icons/laugh.gif" alt="" />
_________________________
[:"red"]Lisa[/]

Top
#220392 - 07/07/02 06:49 PM Re: [UBBT 6.0] Search Page Upgrade (PATCH) [Re: Maze_Brendan]
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
LoL this has been gone over in this thread. When I look at a fresh dosearch.php script right out of the .tar.gz file from the latest version release I have that error.<br /><br />Oddly enough, someone sent me a dosearch.php script that they could not make work with the hack and I noticed they had the same error.<br /><br />I have no idea why some have it (mostly me) and some dont. <img src="/forum/images/icons/crazy.gif" alt="" /><br /><br /><br />So if your dosearch.php doesn't match the line that needs changing you probably shouldn't change it. <img src="/forum/images/icons/wink.gif" alt="" />
_________________________
~Dave
ChattersOnline.com

Top
#220393 - 07/07/02 06:50 PM Re: [UBBT 6.0] Search Page Upgrade (PATCH) [Re: JacquiL]
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
<blockquote><font class="small">posted by Lisa_P:</font><hr /> <blockquote><font class="small">posted by Max Fisch:</font><hr /> small error<br /><br />and it looks like it should really be <br /><br />if ($Searchpage < 0) {<br /><br />Regards,<br />Max<br /><hr /></blockquote><br /><br />Shhhhh-- <img src="/forum/images/icons/wink.gif" alt="" /> Dave can't see the [:"red"] < [/] and swears it isn't there. <img src="/forum/images/icons/laugh.gif" alt="" /> <hr /></blockquote><br /><br /><br /><br />LoL @ Lisa<br /><br /><br />I swear!
_________________________
~Dave
ChattersOnline.com

Top
#220394 - 07/07/02 08:27 PM Re: [UBBT 6.0] Search Page Upgrade (PATCH) [Re: sjsaunders]
Max Fisch Offline
Enthusiast

Registered: 05/11/99
Posts: 412
Loc: NYC
Got it... but I was trying to say that if someone does need to change it, they should change it to " < 0 " as opposed to removing the 0 as your latest attached instructions state. <br /> <br />Cheers, <br />Max <br />


Edited by Max Fisch (07/07/02 08:28 PM)

Top
Page 1 of 3 1 2 3 >



Latest Posts
[7.2.1] - Naked shoutbox
by bellaonline
05/05/12 05:00 PM
[7.x] Stop Forum Spam Integration v0.4
by bellaonline
05/05/12 03:53 PM
Shout Box

(Views)Popular Topics
Known public proxy servers 1689885
Integrated Index Page (IIP) 5.3.1 555705
Finished-[6.5.2] Games Arcade Deluxe v1.9 501236
Integrated Index Page (IIP) 5.1.1 415112
TLD Bv2.1 Released - Threads Links Directory 396822
[6.0x] Who's Online 4.0.0 [Finished] 389412
Finished-[6.5.1] Integrated Index Page (IIP) 6.5 330423
Q & A 298663
Slash UBB 266936
[6.3.x] [beta] Hit Hack 2.0 227970
Forum Stats
13621 Members
59 Forums
37191 Topics
295716 Posts

Max Online: 686 @ 06/28/07 07:04 AM

 

 

 
fusionbb message board php hacks